package com.rede.didiok.user.modulelist.community.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rede.didiok.common.dto.community.MomentCommentDto;
import com.rede.didiok.user.modulelist.community.entity.MomentCommentEntity;

/**
 * 用户动态评价表
 * 
 * @author Rede
 * @email didiok@foxmail.com
 * @date 2023-09-13 08:18:34
 */
@Mapper
public interface MomentCommentDao extends BaseMapper<MomentCommentEntity> {


    /**
     * 榜单成员下架操作
     * @param uid
     * @param rejectReason
     * @param auditStatus
     * @return
     */
    Boolean revocationComment(@Param("uid") String uid, @Param("rejectReason") String rejectReason,
                              @Param("auditStatus") Integer auditStatus);
    /**
     * 根据条件查询评论列表
     * @param page
     * @param comment
     * @return
     */
    Page<MomentCommentEntity> queryPageWithMoment(Page<MomentCommentEntity> page,@Param("comment")  MomentCommentDto comment);
}
